package net.yla.smartbus.module.ba.right.account.mapper;

import net.yla.smartbus.module.ba.right.account.entity.AccountsDO;
import net.yla.smartbus.module.ba.right.admin.entity.AdminDO;
import net.yla.smartbus.module.ba.right.admin.query.AdminCount;
import net.yla.smartbus.module.ba.right.admin.query.AdminQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Date: 2020-08-29 11:02
 * @Author: Being Nobody
 * @Version: 1.0
 */
public interface AccountsMapper {
    int deleteByPrimaryKey(Integer accountId);

    int insert(AccountsDO record);

    int insertSelective(AccountsDO record);

    AccountsDO selectByPrimaryKey(Integer accountId);

    int updateByPrimaryKeySelective(AccountsDO record);

    int updateByPrimaryKey(AccountsDO record);

    List<AccountsDO> account(@Param("query") AdminQuery query);

    int countByQuery(AdminCount query);

    AccountsDO selectByLoginId(String loginId);

    int del(Integer id);

    AccountsDO checkLoginId(Integer id, String loginId);

    //根据人员查询账号
    AccountsDO selectByEmpId(Integer empId);

}